package com.study.s13.binarytree;

public class TestBinaryTree {
	
	public static void main(String[] args) {
		BinaryTree tree = new BinaryTree();
		tree.insert(10);
		tree.insert(20);
		tree.insert(15);
		tree.insert(30);
		tree.insert(33);
		tree.insert(39);
		tree.insert(9);
		tree.insert(2);
		
		System.out.println("打印二叉树");
		tree.print();
		tree.delete(10);
		System.out.println("打印二叉树");
		tree.print();
	}
}
